package cn.tedu.teacher;

import cn.tedu.stu.Test;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class TeacherConfig {

    @Bean
    @Scope("prototype")
    public Teacher tea(){
        Teacher t=new Teacher();
        t.setId(100);
        t.setName("苍苍");
        t.setMajor("java");
        return t;
    }


}
